# This is a sample Python file for testing code analysis

def calculate_sum(a, b):
    """Calculate the sum of two numbers"""
    # This is a comment inside function
    result = a + b
    return result

def factorial(n):
    """Calculate factorial of a number"""
    if n == 0:
        return 1
    else:
        return n * factorial(n-1)

"""
This is a multi-line comment
It spans multiple lines
Used for testing comment detection
"""

class MathOperations:
    """A class for mathematical operations"""
    
    def __init__(self):
        self.value = 0
    
    def set_value(self, value):
        self.value = value
    
    def get_value(self):
        return self.value

# Main execution
if __name__ == "__main__":
    # Create instance and test
    math_ops = MathOperations()
    math_ops.set_value(42)
    
    print(f"Value: {math_ops.get_value()}")
    print(f"Sum: {calculate_sum(5, 3)}")
    print(f"Factorial of 5: {factorial(5)}")